# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=rsstail
pkgver=2.1
pkgrel=1
pkgdesc="tail for rss feeds"
url="https://www.vanheusden.com/rsstail/"
arch="all"
license="GPL-2.0-only"
makedepends="libmrss-dev curl-dev"
checkdepends="cppcheck"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tgz::https://github.com/folkertvanheusden/$pkgname/archive/refs/tags/v$pkgver.tar.gz
	fix-build.patch
	makefile-suppor-install-destdir-path.patch"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	return 0
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/usr/bin
	make DESTDIR=$pkgdir install
}

sha512sums="
f44b029c7f4ecde1b59db9b84d50e8651871303d057ce92db52a98d16c08d4498d8f946f71a0305d98956aabe114a0c9f2bf2a7a359efd1d13577ec273b905f9  rsstail-2.1.tgz
66e2cd6952da68a617c4971df494c5a65258ac7851e82bfe83d3cba2ab7c0b7e7e37c7984dff3988808f8301eaa651e0d1795f0041ba3a4bd84e21ed09dcee49  fix-build.patch
aa935fe0d41ebde9d1da8acc7987c3b8c71a3c67600ef95afb2c36349709bfbcf9ad1eafb2c59532935cd82f7e9556721062d6571216fa5420b7a9912f32a582  makefile-suppor-install-destdir-path.patch
"
